adding contract, database and testcases to app.