add databases combine function