added users_has_stories table to sql and to python