add database user switching to methods that need it
add database user switching to methods that need it

when methods need to write to the database, switch to a write access
user and perform their sql, then switch back to a read user

adambowles/artatk,adambowles/artatk