adding database contract