Fixed some bugs with mysql; improved query search and configured mysql for dev