Addition of SQL queries (roughly done)

This needs review for sure. And I couldn't figure out how to phrase the Order Medication query at all.