Additional Error handling for db modules