use php codes to change the table schema and data in the database