Fix copy database on deploy