Set database connection fetch mode correctly.