Added early domain model - still need categories.
Added code to write transactions to db but this should probably be
moved into domain module.