added support for static files and locally enabled databases