DB access bug in Process PHP

Fixed, previous bugs still exist