SQL - App communication

Fixed a bug