db(): added methods: insert_safe(), replace_safe(), update_safe()