Move DB config out of Page class and in to main script