added connection script to database and added content to nav pages