completed db export with php