Finished ORM save function