schema modified according to postgres