Add `parseGroup` method for Db.
Add `parseHaving` method for Db.
Modified `parseLock` method for Db.