If you're going to empty the database, then you do not need to change the default database table prefix (that's set in the wp-config.php file, btw). Just drop all of the tables in the database and then run wp/admin/install.php
is it possible to set the whole site up in one place and then move it to the root?
Yes but you actually have to move/copy very little. See Giving WordPress Its Own Directory.