Auto-generate insert/update/delete queries