batch job changes

added database changes for batch jobs