fixed performance issue with DatabaseResourceResolver