fix database linking error
remove debug statements from history function