Moved lookup table creation and database opening to separate functions
created unit test class for meds.py