Updating db to postgresql