added connect, close and display database methodes