Return error on db get error