test for both MySql and PgSql.
the default sequence name is 'table-name'_'key-name'_seq.
make all test run.
extracted and made the lastId method public.
removed the protected getLastId, and just use the lastId method.
move forge to Dao class, so that all dao can use forge...
test hooks for onHook and onFilter events.