connecting data base / retrieving data