Retrieve the schema version stored in the database. Should return 0 if none.
Future<int> getStoredSchemaVersion();