Set up database connection. Enabled admin page