Handles database exception properly now.