Modified db saving to use createOrUpdate() instead of create() method.