implemented db parameters from .cfg