Update for mysqldb

Fixed sql for guard_data table