added database connection and wildcards for routing