switch_mprintf -> sqlite3_mprintf, check for null deref...

Make function readable in an 80x25 terminal