Continued work on Rules sql package