adding db framework code, and start adding first time setup code