dirtyly work for postgre, sqlite & mysql
fix wrong file copying