Save to db instead of printing to console