Added basic select query code