added database classes and classes to parse the URI