Test connection to the data base