add php query scripts