fixed #35 Need insertOrUpdate() method