fixing stuff for heroku
fixed sql error
fixed sql error
edited param grabbing, should be able to bounce stuff