The create method now throws an exception when an attempt is made to create a database entry with an invalid object.