add batch model and migrate to db, start on interface to Captricity api