Added findByState function

This will make it possible to find all records of a given state

Fixes #5

Signed-off-by: Frode Marton Meling <fm@saltship.com>