converted routes/sign-up.js to use db.query