added logic for toggling auto update setting in database

users can now manually select their preferred auto update status.
changes are saved to database immediately