Experimenting with retrieving and printing values from db