Use our own sql functions to extract table names from sql statements