Implemented select query to retrieve from source database