SQL select query builder in Qt