added persist module that generalizes db calls and user management template