Minor changes
Refactored code to accommodate persistent SQLite database