setup and config of auto open db