Add copy constructors to object and database::object