working base resource, route and db