get db working, temporarily remove some external dependencies