added general-use select() function in database library and updated user_model accordingly