some dbconfig stuff, a function example, and auto save