Created contract class for database
Created database helper
Fixed issue with database, added test data to database