implemented exception support
handling unavailable database