postgresql7.4 DELETE FROM lrc_lab_template_map WHERE template_id = :template_id AND lab_id = :lab_id