static file serving delegated to nginx
set current db once per request