Completed DatabasePersister

Working code, without unit tests