Base db helpers, in memory database dependencies