Write a Function that will connect to a database and read data from a table and print the values.