ERROR: database "mah" is being accessed by other users DETAIL: There is 1 other session using the database.
-Appears selecting the db from tree view creates session, therefore always a session to db and unable to drop from gui
This should not be the case.The database connection has been closed before deleting it.
There should be another session (Ex: psql, query tool) which is creating this problem. So, try to close all the sessions before deleting any database from GUI.