[sr-dev] git:5.1:a792b1cf: siptrace: check if trace_to_database is set before checking the db connection