Simple PHP Database API class