Moving additional SQL query code into helper_sent.py