fixes the order in which sql helper functions are loaded