make db resilient to bad get requests