first version
update db to postgresql