Added function for using ATTACH for sync between db's. Not yet in use.