Subquery library added, and user profile information pulled correctly from database.