codewars and saving entries to database