PERF-76 Add asynchronous writing to database via Resque job.