further separated user & datastore

also added template function to assign multiple vars at once