doesn't need multiple QSqlQuery objects to get user id