Added parameters to database contract