Added connection to db...new, create, index pages