seperated sql exec to seperate php