Transfer database(mysql) with external databases(postgresql) and remove unused files