Fix "cannot import name execute_batch" error with postgres.