any-db postgres and other fixes