Added database connection and enabled score saving