oops error fix-setting up for sql queries