TW-8: Moves settings into the DB