add database and sychronize datase from external to local.