You won’t lose any data if you take a backup of your database prior to creating the new database location and restoring from the backup afterwards.