fixed error with to many db connections by batching prepared statement