Added Controller and connecting to database.