changed header and footer; can now connect to db