adding most recent version to db