setup for putting objects into the database