fixed selectbuddies function and added bcrypt-nodejs to dependencies