Moved file transfers into the messages db, fixed transfer