add a function that takes the current queries.sql file and creates hook_update_N() code out of it
add a function that takes the current queries.sql file and creates hook_update_N() code out of it