2nd commit. mongo config. stories contoller using function from story model