removed db

Removed all references to the sql database backend
Added guid

Added guids wherever we have ids. This should help with future sync plans.