little fix of db_plugin