check if network exists function

fixed an error where user could attempt to create a table that already
exists.