creating the whole local database