copy and replace database files