keep the old php for sql