Added factories and builder to create domain objects from sqlite database cursor.