enable syncing
add method DbTable.createdb.  pass separate $scope into each method of DbTable