Convert query records to structs
Remove mix.lock from example

It is outdated most of the time.