migrate database directory to config/setup and cleanup setup scripts