Added the mapping file and the query_lode script into controller