database clean function, user_components table in local db