added initial support for postgres batch update