db engines constructor simplified

todoA, username and projectname are no more passed explicitely
Pass Cfg object to engine constructor