Move plugin path collect code to Database from database dumper

Database#plugin_paths is added.