Simplifed sql queries.
Added api for /patient/:id