miscallneous stuff
quote non-integer input to fix bug in sql queries