fix database script in functional test

The database script needs to be re-generated after schema change