Generic typesafe ID type to abstract away the underlying database.
Basic definitions
Web interface implementation