database: apply read prefs to commands.