[development] Guidelines for writing efficient SQL code