now passing database tests
batch api calls working