database
activate logout function