Returns the database size.
int DatabaseInfo.getDbSize()
(-1) when the database is not persistent and when write-at-end is configured; otherwise, the current size of the persistent store is returned.