Reworked database model and converted it to SQLite for testing purposes