added a callback before database open, some additional work can be do here

added a callback before database open, some additional work can be do here, e.g. install a custom collation use `sqlite3_create_collation16`