fixed bug where request hangs on databse failure