updated
changed db from sql to pg