hook to run a mysql query
stitch angular in