fix db and subscribers model