Small code simplification

Set structs as part of declaration
Reorder functions in maxminddb.c to roughly match call order