fix bug in mysql query runs, add additional mysql query, fix timing bug in mongo queries