added user controller/module and changed to use local sql database