moved database config to module