installer_db: added custom pre and post hooks for create and alter table