added connection functions, genericQuery, and bcrypt