* change fetchAllByBatches and fetchBatch to allow messages and threads to be fetched by batches * wip * format threads batches * command is working * command is working * fix typing * updates