refine config of lockit

- support config sub modules to lockit.
- refine database adapter creating workflow.