added unless statement to handle nil created_at in quotes db