cleaner error handling
db configuration done in the module