Use active record pattern as above.