Moved DB

Moved the DB declaration to the front screen.