added uri parameter to database connection