[sr-dev] git:5.2:94b60464: siptrace: check if trace_to_database is set before checking the db connection