Batch class now stored in SQLite database

rudimentary implementation, needs more testing but something is added to
database and it runs...