added feature to hard-code select query