add free mmdb when done with it
get metadata is starting to work