Map files to sql queries