Constructor for structure
Fix problem with loc hash function
Database marshalling with test