Add `getLastInsertId` method for Db.