queries: insert - improved exception