done writing, plenty of testing to do
Works for batch from Db!