Create the contract and also the database creation/upgrade code
Unit testing for database creation/query