Add `delete` method for Db.
Add security type checking.
Fixed `insertAll` method, add options security type checking.