added modular db framework