Aurora_Database: Separate build_query from select