Added schema to database contract and code to create db.