Fix NULL to nullptr for SQL queries
Fix NULL to nullptr for SQL queries take 2