Added typecasting of mysql results
DAO looks better
Added missing new in search typecast
Parametrized logger
Added conflicting schedule rule check