login working

going to try to separate db connections into db.js