Changed all controllers for database connection