revert back to single exit point and use select get_records_sql to prevent additional processing