events fetch and database through in