Moved database update to file send instead of play()