Change tables names to lower case in queries