Add `replace` method for Db.
Modified return result of `insert` method.