update ERDB and merge fill_db