Implemented initial handshake functionality. Added query response in manage.py