Fixed the database connection by using Code First migrations