Move db class to engine folder
Update namespace