Moving check database script to a single page.