Query db and display to console.