commiting scripts and queries for phases 1 - 3