adding the start of base sql and marc functions for koha to mig-init