Update delete method to use sqlalchemy, and get rid of the psycopg2 session object on the controller.