Works properly. Needs to be refactored to move db_connection into its own class.
Moved db_connection method into a DBConnection class.