Fixed database connection - Peter