Core: Use FileDB

Addresses #174
TEMP
Core: Move DatabaseNotValidError to core.exceptions
TEMP
TEMP