moved db initialisation of batchlisteners to init method