Client-Server Applications with SQL Queries