Create checkelog.cpp

check st db source elog usage