add last local database before branching