db factory
db factory - module