better storage of sql queries, ignore case in query