Updating SQL databases into separate files