completing auth module
db.js trial cleanup
complete index.js
siteURL fixes