abstracted mongo collection name to social script
renamed db variable in lib/db.js