Make comparison look like all the others (NULL == ...)
Don't attempt to read more data than the size of the file when looking for metadata
Remove pointless init() function
include more information when MMDB_open fails