Changed database url and added logout functionality