Added APIs for backend

creating story and emails to db