finalized db structure and worked out logic between user profile and event