Adding Postgres stored procedures and cleaned up data file