advanced_database_replace
