Refactor Charon database syncing and CharonSession object methods

@Galithil @Galithil @Galithil