Fixed queries
Fixed GetRemindTime
Fixed comments
Added connection to CheckTable