put puzzles to db