logout, database etc