Add server code with queries

Add server code with queries

Contact: joaquin@isla.io