connected database, add controlers to views infromation for db.
connect db, and test.