fixed the db post to pages issues
merged