fixed db migration script to add pages