added unique constraint on story url also added test cases