initial code for consistent refs
added table.create with exists error promise
added table.create with exists error promise