More on dynamics implementation, changed db to postgres