Add settings add/update/retrieve.
Tidy up migrations in this PR.