Added db backed auth

- adjusted authorities table to contain id