snapshot/sample of a php sql library