batch added properly from production plan page

added methods getAllBatches and getLastBatchId to SQLite helper