begin adding support for persistence mechanism and user access logging

Incomplete - this commit doesn't connect to the db to save user access logs yet.