Implemented storing analytics data into database