added simple database queries - exports only to console right now.