Working on really encoding using the db.