Adding create Factory using database